import Vue from 'vue'
import _Audio from './audio.vue'

const AudioConstructor = Vue.extend(_Audio)
let audioPool = []

let Audio = (el, options = {}) => {
  if (!el) return

  let instance = new AudioConstructor({
    el: el,
    data () {
      return {
        id: options.id || '',
        title: options.title || '',
        time: options.time || '',
        content: options.content || ''
      }
    }
  })
  audioPool.push(instance)
}

export default Audio



// WEBPACK FOOTER //
// ./src/components/audio/src/audio.js
